﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DesignPattern.AbstractFactoryPattern
{
    class Program
    {
        static void Main(string[] args)
        {

            AbstractFactory factory = new ShangHaiFactory();
            var yabo = factory.CreateYaBo();
            var yajia = factory.CreateYaJia();
            yabo.Print();
            yajia.Print();

            Console.ReadKey();
        }
    }
}
